﻿
using System;
using System.Diagnostics;
using System.Reflection;
using StructureMap;

namespace Sripirom.ATS.Core.Logging
{
    /// <summary>
    /// Log Factory
    /// </summary>
    public static class LoggerFactory
    {
        #region Members

        private static ILoggerFactory _currentLogFactory = null;
        

     

        #endregion

        #region Public Methods

        /// <summary>
        /// Set the  log factory to use
        /// </summary>
        /// <param name="logFactory">Log factory to use</param>
        public static void SetCurrent(ILoggerFactory logFactory)
        {
            //System.ServiceModel.ServiceHost
            _currentLogFactory = logFactory;
        }

        /// <summary>
        /// Createt a new Log
        /// </summary>
        /// <returns>Created ILog</returns>
        public static ILogger CreateLog()
        {
             return  _currentLogFactory.Create();
        }



        #endregion
    }
}
